package com.cnswhy.cloud.server.core.dto;

import com.cnswhy.cloud.common.core.base.entity.SuperEntity;
import com.cnswhy.cloud.server.common.entity.enumeration.ChannelType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2021-07-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CpsTransOrderUpdateDTO", description = "")
public class CpsTransOrderUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 渠道ID
     */
    @ApiModelProperty(value = "渠道ID")
    @Length(max = 20, message = "渠道ID长度不能超过20")
    private String channelId;
    /**
     * 0新增 1 交易中 2 成功  3 失败 4 已过期
     */
    @ApiModelProperty(value = "0新增 1 交易中 2 成功  3 失败 4 已过期")
    private Integer status;
    /**
     * 客户编号
     */
    @ApiModelProperty(value = "客户编号")
    private Long customerId;
    /**
     * 卡号
     */
    @ApiModelProperty(value = "卡号")
    @Length(max = 32, message = "卡号长度不能超过32")
    private String cardId;
    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    @Length(max = 32, message = "订单号长度不能超过32")
    private String orderId;
    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额")
    private Long transAmt;
    /**
     * 交易手续费
     */
    @ApiModelProperty(value = "交易手续费")
    private Long transFee;
    /**
     * 手续费
     */
    @ApiModelProperty(value = "手续费")
    private Long fee;
    /**
     * 附加手续费
     */
    @ApiModelProperty(value = "附加手续费")
    private Long externFee;
    /**
     * 交易费率
     */
    @ApiModelProperty(value = "交易费率")
    private Long feeRate;
    /**
     * 响应码
     */
    @ApiModelProperty(value = "响应码")
    @Length(max = 32, message = "响应码长度不能超过32")
    private String respCode;
    /**
     * 响应描述
     */
    @ApiModelProperty(value = "响应描述")
    @Length(max = 255, message = "响应描述长度不能超过255")
    private String respDesc;
    /**
     * 渠道子商户
     */
    @ApiModelProperty(value = "渠道子商户")
    @Length(max = 32, message = "渠道子商户长度不能超过32")
    private String subMerchId;
    /**
     * 银行
     */
    @ApiModelProperty(value = "银行")
    @Length(max = 255, message = "银行长度不能超过255")
    private String bankAbbr;
    /**
     * 登录账号
     */
    @ApiModelProperty(value = "登录账号")
    @Length(max = 255, message = "登录账号长度不能超过255")
    private String mobile;
    /**
     * 清算日期
     */
    @ApiModelProperty(value = "清算日期")
    @Length(max = 8, message = "清算日期长度不能超过8")
    private String settDate;
    /**
     * 客户姓名
     */
    @ApiModelProperty(value = "客户姓名")
    @Length(max = 255, message = "客户姓名长度不能超过255")
    private String custName;
    /**
     * 钱包类型 #ChannelType{LITTLE:小额;LARGE:大额;}
     */
    @ApiModelProperty(value = "钱包类型 #ChannelType{LITTLE:小额;LARGE:大额;}")
    private ChannelType channelType;
}
